package com.example.demo.edu;

import com.example.demo.edu.bean.EduTeacher;
import com.example.demo.edu.service.EduTeacherMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
    private EduTeacherMapperService eduTeacherMapperService;
@Autowired
    public void setEduTeacherMapperService(EduTeacherMapperService eduTeacherMapperService) {
        this.eduTeacherMapperService = eduTeacherMapperService;
    }

  @GetMapping("/CheShi")
    public EduTeacher ac() {
        return eduTeacherMapperService.selectAll().get(0);
    }
}
